html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 禁用水平滚动条 */
}

.recommendation-title {
    font-size: 24px;
    font-weight: bold;
}

/* 推荐标题样式 */
.recommendation-title {
    font-size: 28px; /* 设置较大的字体 */
    font-weight: bold; /* 加粗 */
    margin: 20px 0; /* 上下外边距 */
    color: #ff2c2c; 
    letter-spacing: 2px; /* 字间距 */
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.1); /* 添加轻微阴影 */
}

/* 商品容器样式 */
.commoditybox {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* 子元素两边对齐 */
    gap: 20px; /* 卡片间距 */
    padding: 0 5%;
}

.merchandisecards {
    flex: 0 0 calc(20% - 20px);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.merchandisecards:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.imgmer {
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
}

.merfon {
    margin-top: 10px;
    color: #555;
    font-size: 14px;
}
/*适应小屏幕*/
@media (max-width: 1200px) {
    .merchandisecards {
        flex: 0 0 calc(25% - 20px); /* 一行 4 个 */
    }
}

@media (max-width: 992px) {
    .merchandisecards {
        flex: 0 0 calc(33.33% - 20px); /* 一行 3 个 */
    }
}

@media (max-width: 768px) {
    .merchandisecards {
        flex: 0 0 calc(50% - 20px); /* 一行 2 个 */
    }
}

@media (max-width: 576px) {
    .merchandisecards {
        flex: 0 0 100%; /* 一行 1 个 */
    }
}

/* 骨架屏样式 */
.recomskeleton {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    margin-left: 7px;
}

.lay-skeleton-article {
    width: 345px;
    height: 438px;
    background-color: #f0f0f0;
    border-radius: 8px;
    padding: 10px;
}

.lay-skeleton-img {
    width: 100%;
    height: 150px;
    background: #e0e0e0;
    border-radius: 8px;
}

.lay-skeleton-text {
    height: 16px;
    margin-top: 10px;
    background: #e0e0e0;
    border-radius: 4px;
}

.lay-skeleton-text:first-child {
    width: 80%;
}

.lay-skeleton-text:nth-child(2) {
    width: 70%;
}

.lay-skeleton-text:last-child {
    width: 50%;
}